package com.click369.mianshiqingbao.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户登录信息的查询条件封装类
 */


public class LoginBeanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LoginBeanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLoginIdIsNull() {
            addCriterion("login_id is null");
            return (Criteria) this;
        }

        public Criteria andLoginIdIsNotNull() {
            addCriterion("login_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIdEqualTo(Integer value) {
            addCriterion("login_id =", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotEqualTo(Integer value) {
            addCriterion("login_id <>", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThan(Integer value) {
            addCriterion("login_id >", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("login_id >=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThan(Integer value) {
            addCriterion("login_id <", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThanOrEqualTo(Integer value) {
            addCriterion("login_id <=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdIn(List<Integer> values) {
            addCriterion("login_id in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotIn(List<Integer> values) {
            addCriterion("login_id not in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdBetween(Integer value1, Integer value2) {
            addCriterion("login_id between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotBetween(Integer value1, Integer value2) {
            addCriterion("login_id not between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNull() {
            addCriterion("login_time is null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNotNull() {
            addCriterion("login_time is not null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeEqualTo(Date value) {
            addCriterion("login_time =", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotEqualTo(Date value) {
            addCriterion("login_time <>", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThan(Date value) {
            addCriterion("login_time >", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("login_time >=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThan(Date value) {
            addCriterion("login_time <", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThanOrEqualTo(Date value) {
            addCriterion("login_time <=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIn(List<Date> values) {
            addCriterion("login_time in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotIn(List<Date> values) {
            addCriterion("login_time not in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeBetween(Date value1, Date value2) {
            addCriterion("login_time between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotBetween(Date value1, Date value2) {
            addCriterion("login_time not between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLogRelIsNull() {
            addCriterion("log_rel is null");
            return (Criteria) this;
        }

        public Criteria andLogRelIsNotNull() {
            addCriterion("log_rel is not null");
            return (Criteria) this;
        }

        public Criteria andLogRelEqualTo(String value) {
            addCriterion("log_rel =", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelNotEqualTo(String value) {
            addCriterion("log_rel <>", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelGreaterThan(String value) {
            addCriterion("log_rel >", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelGreaterThanOrEqualTo(String value) {
            addCriterion("log_rel >=", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelLessThan(String value) {
            addCriterion("log_rel <", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelLessThanOrEqualTo(String value) {
            addCriterion("log_rel <=", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelLike(String value) {
            addCriterion("log_rel like", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelNotLike(String value) {
            addCriterion("log_rel not like", value, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelIn(List<String> values) {
            addCriterion("log_rel in", values, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelNotIn(List<String> values) {
            addCriterion("log_rel not in", values, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelBetween(String value1, String value2) {
            addCriterion("log_rel between", value1, value2, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelNotBetween(String value1, String value2) {
            addCriterion("log_rel not between", value1, value2, "logRel");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalIsNull() {
            addCriterion("log_rel_signal is null");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalIsNotNull() {
            addCriterion("log_rel_signal is not null");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalEqualTo(String value) {
            addCriterion("log_rel_signal =", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalNotEqualTo(String value) {
            addCriterion("log_rel_signal <>", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalGreaterThan(String value) {
            addCriterion("log_rel_signal >", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalGreaterThanOrEqualTo(String value) {
            addCriterion("log_rel_signal >=", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalLessThan(String value) {
            addCriterion("log_rel_signal <", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalLessThanOrEqualTo(String value) {
            addCriterion("log_rel_signal <=", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalLike(String value) {
            addCriterion("log_rel_signal like", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalNotLike(String value) {
            addCriterion("log_rel_signal not like", value, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalIn(List<String> values) {
            addCriterion("log_rel_signal in", values, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalNotIn(List<String> values) {
            addCriterion("log_rel_signal not in", values, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalBetween(String value1, String value2) {
            addCriterion("log_rel_signal between", value1, value2, "logRelSignal");
            return (Criteria) this;
        }

        public Criteria andLogRelSignalNotBetween(String value1, String value2) {
            addCriterion("log_rel_signal not between", value1, value2, "logRelSignal");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}